import type { LocationQuery } from 'vue-router'
export function useNavTo() {
  const router = useRouter()
  const navTo = (url: string, query?: LocationQuery) => {
    console.log(url)

    router.push({
      name: url,
      query: query,
    })
  }

  return {
    navTo,
  }
}
